Solve System of linear equations